package com.pacy.pacybaseproject.adapters;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pacy.pacybaseproject.R;

/**
 * @author PACY
 * @date 2024/1/3
 * description:
 */
public class TravelStationAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public TravelStationAdapter() {
        super(R.layout.travel_station_item_view);
    }

    @Override
    protected void convert(BaseViewHolder holder, String s) {
        if(holder.getAbsoluteAdapterPosition()==0){
            holder.setText(R.id.name_tv,"11路")
                    .setGone(R.id.time_lin,false)
                    .setGone(R.id.timeFalse_tv,true)
                    .setText(R.id.station_tv,"中建机械南门")
                    .setGone(R.id.startTime_tv,true);
        }else{
            holder.setText(R.id.name_tv,"35路")
                    .setGone(R.id.time_lin,true)
                    .setGone(R.id.timeFalse_tv,false)
                    .setText(R.id.station_tv,"廊坊站")
                    .setGone(R.id.startTime_tv,false);
        }
    }
}
